-- GENERATED SPELL FOR [Overlord Ror] --


function spell0_9464(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(15793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9464', 618, 1)
end

function spell1_9464(pUnit, Event) --@Terrifying Roar,Self--
pUnit:FullCastSpellOnTarget(14100,pUnit)
pUnit:RegisterEvent('Sorts_9464', 5326, 1)
end

function Sorts_9464(pUnit, Event)
local choix_sorts_9464 = math.random(0, 1)
if choix_sorts_9464 == 0 then
pUnit:RegisterEvent('spell0_9464', 1, 1)
end
if choix_sorts_9464 == 1 then
pUnit:RegisterEvent('spell1_9464', 1, 1)
end
end

function mob9464_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9464', math.random(1500, 3000), 1)
end

function mob9464_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9464_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9464_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9464, 1, 'mob9464_Action')
RegisterUnitEvent(9464, 2, 'mob9464_Leave')
RegisterUnitEvent(9464, 3, 'mob9464_Kill')
RegisterUnitEvent(9464, 4, 'mob9464_Die')
